<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<f:view>

		<h:outputText value="Efetue o seu cadastro para anunciar" style='color: #0000FF; font-size: 18px; font-family: "Trebuchet MS", Sans-Serif'></h:outputText>
		<br><h:outputText value="#{cadastro.msg}" style="color: #FF0000"></h:outputText>
		<h:form>
			<h:panelGrid border="1" columns="2">
				<h:outputText value="Nome: "></h:outputText>
				<h:inputText value="#{cadastro.novo.nome}" required="true"></h:inputText>
				<h:outputText value="Login: "></h:outputText>
				<h:inputText value="#{cadastro.novo.login}" required="true"></h:inputText>
				<h:outputText value="Senha: "></h:outputText>
				<h:inputSecret value="#{cadastro.novo.senha}" required="true"></h:inputSecret>
				<h:outputText value="Repita a senha:"></h:outputText>
				<h:inputSecret value="#{cadastro.senhaRepetida}"></h:inputSecret>
			</h:panelGrid>
			<h:commandButton value="Cadastrar Usuário" action="#{cadastro.cadastrarUsuario}"></h:commandButton>
		</h:form>
	</f:view>
</body>
</html>